//
//  SDBasePaientListController.h
//  SKinDiary
//
//  Created by pcyang on 16/7/16.
//  Copyright © 2016年 tencent. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "SDPaientInfoItem.h"

typedef void(^SelectedItem)(SDPaientInfoItem *item);

@interface SDBasePaientListController : SDBaseViewController
@property (strong, nonatomic) UISearchBar *searchBar;
@property (strong, nonatomic) NSArray *dataSource;/**<排序前的整个数据源*/
@property (strong, nonatomic) NSDictionary *allDataSource;/**<排序后的整个数据源*/
@property (strong, nonatomic) NSMutableArray *searchDataSource;/**<搜索结果数据源*/
@property (strong, nonatomic) NSArray *indexDataSource;/**<索引数据源*/
@property (assign, nonatomic) BOOL isSearch;

@property (strong, nonatomic) UITableView *friendTableView;
@property (strong, nonatomic) SelectedItem block;

-(void)initSubviews;
-(void)initData;
- (void)reloadData;
- (void)didSelectedItem:(SelectedItem)block;
@end